package com.system.mapper;

import com.system.model.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser selectByUsernameAndPassword(SysUser sysUser);

    SysUser querySysUserByUsername(SysUser sysUser);

    List<SysUser> queryAllSysUser();

    SysUser getCurrentSysUserByUsername(String username);
}